package com.dou.yygh.hosp.service;

import com.dou.yygh.model.hosp.Schedule;
import com.dou.yygh.vo.hosp.ScheduleOrderVo;
import com.dou.yygh.vo.hosp.ScheduleQueryVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA 2021.1 x64
 *
 * @Author: 窦义超
 * @Date: 2021/08/2021/8/29/12:32
 * @Description:
 */
public interface ScheduleService {
    void save(Map<String, Object> paramMap);

    Page<Schedule> findPageSchedule(int page, int limit, ScheduleQueryVo scheduleQueryVo);

    void remove(String hoscode, String hosScheduleId);
    //根据医院编号和科室编号,查询排班规则数据
    Map<String, Object> getRuleSchedule(int page, int limit, String hoscode, String depcode);
    //根据医院编号 、科室编号和工作日期，查询排班详细信息
    List<Schedule> getDetailSchedule(String hoscode, String depcode, String workDate);
//获取可预约排班数据
    Map<String, Object> getBookingScheduleRule(Integer page, Integer limit, String hoscode, String depcode);
    //根据排班id获取排班数据
    Schedule getScheduleById(String scheduleId);
    //根据排班id获取预约下单数据
    ScheduleOrderVo getScheduleOrderVo(String scheduleId);
    //更新排班数据
    void update(Schedule schedule);
}
